﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ZhongKeSite.Entity
{
    [Table("FAQs")]
    public class FAQs
    {
        [Key]
        [MaxLength(50)]
        public string ID { get; set; }
        /// <summary>
        /// FAQs标题
        /// </summary>
        [MaxLength(100)]
        public string Title { get; set; }
        /// <summary>
        /// 类型：生长系统，园艺照明，解决方案
        /// </summary>
        [MaxLength(50)]
        public string CategoryID { get; set; }
        /// <summary>
        /// 答案描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 排序号
        /// </summary>
        public int SortNo { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public int IsAvailable { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDel { get; set; }
        [MaxLength(50)]
        public string AddBy { get; set; }
        public Nullable<DateTime> AddDate { get; set; }
        [MaxLength(50)]
        public string UpdateBy { get; set; }
        public Nullable<DateTime> UpdateDate { get; set; }

        #region 关联
        [ForeignKey("CategoryID")]
        public virtual Category Category { get; set; }
        #endregion
        
    }
}
